const index1 = {
    state: {
        attr:'',
        status:'',
        statusStr:'',
        userType:0,//用户类型 1 大陆 2 港澳台 3 海外
        isModify:0,//是否是修改 0 否 1 是
        flowInfo:{},//存储/v1/open/page/flow接口的信息
    },
    mutations: {
      SET_ATTR: (state, attr) => {
        state.attr = attr
      },
      SET_STATUS: (state, status) => {
        state.status = status
      },
      SET_STATUSSTR: (state, statusStr) => {
        state.statusStr = statusStr
      },
      SET_USERTYPE:(state, userType) => {
        state.userType = userType
      },
      SET_ISMODIFY:(state, isModify) => {
        state.isModify = isModify
      },
      SET_FLOWINFO:(state, flowInfo) => {
        state.flowInfo = flowInfo
      },
    },
    actions:{
      setAttr({ commit },attr) {
        commit('SET_ATTR',attr)
      },
      setStatus({ commit },status) {
        commit('SET_STATUS',status)
      },
      setStatusStr({ commit },statusStr) {
        commit('SET_STATUSSTR',statusStr)
      },
      setUserType({ commit },userType){
        commit('SET_USERTYPE',userType)
      },
      setIsModify({ commit },isModify){
        commit('SET_ISMODIFY',isModify)
      },
      setFlowInfo({ commit },flowInfo){
        commit('SET_FLOWINFO',flowInfo)
      },
    }
  }
  
  export default index1